from app import BASE_URL


class TenderApi:
    def __init__(self):
        # 投资
        self.tender_url = BASE_URL + "/trust/trust/tender"

    # 投资
    def tender(self, session, id, amount):
        param = {
            "id": id,
            "amount": amount,
            "depositCertifica": -1,
        }
        return session.post(self.tender_url, data=param)
